<% include ../header.ejs %>
    <div class="persondata" ng-controller="persondataController">

        <div class="persontable clearfix">
            <%if(user.identity==1){%>
                <div class="base">
                    <form action="">
                        <fieldset>
                            <legend>基本信息</legend>
                            <table>
                                <tr>
                                    <td class="odd">学号</td>
                                    <td class="even">
                                        <input type="text" ng-init="studentNo=<%=user.studentNo%>" ng-model="studentNo" ng-disabled="true" id="studentNo">
                                    </td>
                                    <td class="odd">姓名</td>
                                    <td class="even">
                                        <input type="text" ng-init="name='<%=user.name%>'" ng-model="name">
                                    </td>
                                    <td class="odd">年龄</td>
                                    <td class="even">
                                        <input type="text" ng-init="age=<%=user.age%>" ng-model="age">
                                    </td>
                                </tr>
                                <tr>
                                    <td>性别</td>
                                    <td>
                                        <input type="text" ng-init="sex='<%=user.sex%>'" ng-model="sex">
                                    </td>
                                    <td>手机号</td>
                                    <td>
                                        <input type="text" ng-init="phone=<%=user.phone%>" ng-model="phone">
                                    </td>
                                    <td>身份证号</td>
                                    <td>
                                        <input type="text" ng-init="ID='<%=user.ID%>'" ng-model="ID">
                                    </td>
                                </tr>
                                <tr>
                                    <td>微信</td>
                                    <td>
                                        <input type="text" ng-init="weixin=<%=user.weixin%>" ng-model="weixin">
                                    </td>
                                    <td>QQ</td>
                                    <td>
                                        <input type="text" ng-init="qq=<%=user.qq%>" ng-model="qq">
                                    </td>
                                    <td>邮箱</td>
                                    <td>
                                        <input type="text" ng-init="email='<%=user.email%>'" ng-model="email">
                                    </td>
                                </tr>
                                <tr>
                                    <td>学校</td>
                                    <td>
                                        <input type="text" ng-init="school='<%=user.school%>'" ng-model="school">
                                    </td>
                                    <td>专业</td>
                                    <td>
                                        <input type="text" ng-init="major='<%=user.major%>'" ng-model="major">
                                    </td>
                                    <td>学历</td>
                                    <td>
                                        <input type="text" ng-init="education='<%=user.education%>'" ng-model="education">
                                    </td>
                                </tr>
                            </table>
                        </fieldset>

                    </form>
                </div>
                <div class="zhiyou">
                    <form action="">
                        <fieldset>
                            <legend>在智游信息</legend>
                            <table>
                                <tr>
                                    <td class="odd">入学日期</td>
                                    <td class="even">
                                        <input type="text" ng-init="joinDate='<%=user.joinDate%>'" ng-model="joinDate">
                                    </td>
                                    <td class="odd">毕业日期</td>
                                    <td class="even">
                                        <input type="text" ng-init="gradDate='<%=user.gradDate%>'" ng-model="gradDate">
                                    </td>
                                    <td class="odd">学习状态</td>
                                    <td class="even">
                                        <input type="text" ng-init="studyStatus='<%=user.studyStatus%>'" ng-model="studyStatus">
                                    </td>
                                </tr>
                                <tr>
                                    <td>招生老师</td>
                                    <td>
                                        <input type="text" ng-init="introTeacher='<%=user.introTeacher%>'" ng-model="introTeacher">
                                    </td>
                                    <td>班主任老师</td>
                                    <td>
                                        <input type="text" ng-init="chargeTeacher='<%=user.chargeTeacher%>'" ng-model="chargeTeacher">
                                    </td>
                                    <td>任课老师</td>
                                    <td>
                                        <input type="text" ng-init="teachTeacher='<%=user.teachTeacher%>'" ng-model="teachTeacher">
                                    </td>
                                </tr>
                                <tr>
                                    <td>班级名称</td>
                                    <td>
                                        <input type="text" ng-init="className='<%=user.className%>'" ng-model="className">
                                    </td>
                                    <td>住宿地址</td>
                                    <td>
                                        <input type="text" ng-init="dormAddress='<%=user.dormAddress%>'" ng-model="dormAddress">
                                    </td>
                                    <td>宿舍号</td>
                                    <td>
                                        <input type="text" ng-init="dormNo=<%=user.dormNo%>" ng-model="dormNo">
                                    </td>
                                </tr>
                                <tr>
                                    <td>缴费状态</td>
                                    <td>
                                        <input type="text" ng-init="pay=<%=user.pay%>" ng-model="pay" paypay ng-disabled="true">
                                    </td>
                                    <td></td>
                                    <td>
                                        <input type="text" ng-disabled="true">
                                    </td>
                                    <td></td>
                                    <td>
                                        <input type="text" ng-disabled="true">
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </form>
                </div>
                <div class="btn">
                    <button class="button" ng-click="alterdata()">保存</button>
                </div>
                <%}%>
                <%if(user.identity==0){%>
                <div class="base">
                    <form action="">
                        <fieldset>
                            <legend>基本信息</legend>
                            <table>
                                <tr>
                                    <td class="odd">学号</td>
                                    <td class="even">
                                        <input type="text" ng-init="studentNo=<%=stumsg.studentNo%>" ng-model="studentNo" id="studentNo">
                                    </td>
                                    <td class="odd">姓名</td>
                                    <td class="even">
                                        <input type="text" ng-init="name='<%=stumsg.name%>'" ng-model="name">
                                    </td>
                                    <td class="odd">年龄</td>
                                    <td class="even">
                                        <input type="text" ng-init="age=<%=stumsg.age%>" ng-model="age">
                                    </td>
                                </tr>
                                <tr>
                                    <td>性别</td>
                                    <td>
                                        <input type="text" ng-init="sex='<%=stumsg.sex%>'" ng-model="sex">
                                    </td>
                                    <td>手机号</td>
                                    <td>
                                        <input type="text" ng-init="phone=<%=stumsg.phone%>" ng-model="phone">
                                    </td>
                                    <td>身份证号</td>
                                    <td>
                                        <input type="text" ng-init="ID='<%=stumsg.ID%>'" ng-model="ID">
                                    </td>
                                </tr>
                                <tr>
                                    <td>微信</td>
                                    <td>
                                        <input type="text" ng-init="weixin=<%=stumsg.weixin%>" ng-model="weixin">
                                    </td>
                                    <td>QQ</td>
                                    <td>
                                        <input type="text" ng-init="qq=<%=stumsg.qq%>" ng-model="qq">
                                    </td>
                                    <td>邮箱</td>
                                    <td>
                                        <input type="text" ng-init="email='<%=stumsg.email%>'" ng-model="email">
                                    </td>
                                </tr>
                                <tr>
                                    <td>学校</td>
                                    <td>
                                        <input type="text" ng-init="school='<%=stumsg.school%>'" ng-model="school">
                                    </td>
                                    <td>专业</td>
                                    <td>
                                        <input type="text" ng-init="major='<%=stumsg.major%>'" ng-model="major">
                                    </td>
                                    <td>学历</td>
                                    <td>
                                        <input type="text" ng-init="education='<%=stumsg.education%>'" ng-model="education">
                                    </td>
                                </tr>
                            </table>
                        </fieldset>

                    </form>
                </div>
                <div class="zhiyou">
                    <form action="">
                        <fieldset>
                            <legend>在智游信息</legend>
                            <table>
                                <tr>
                                    <td class="odd">入学日期</td>
                                    <td class="even">
                                        <input type="text" ng-init="joinDate='<%=stumsg.joinDate%>'" ng-model="joinDate">
                                    </td>
                                    <td class="odd">毕业日期</td>
                                    <td class="even">
                                        <input type="text" ng-init="gradDate='<%=stumsg.gradDate%>'" ng-model="gradDate">
                                    </td>
                                    <td class="odd">学习状态</td>
                                    <td class="even">
                                        <input type="text" ng-init="studyStatus='<%=stumsg.studyStatus%>'" ng-model="studyStatus" placeholder="学习中/请假中/已退学">
                                    </td>
                                </tr>
                                <tr>
                                    <td>招生老师</td>
                                    <td>
                                        <input type="text" ng-init="introTeacher='<%=stumsg.introTeacher%>'" ng-model="introTeacher">
                                    </td>
                                    <td>班主任老师</td>
                                    <td>
                                        <input type="text" ng-init="chargeTeacher='<%=stumsg.chargeTeacher%>'" ng-model="chargeTeacher">
                                    </td>
                                    <td>任课老师</td>
                                    <td>
                                        <input type="text" ng-init="teachTeacher='<%=stumsg.teachTeacher%>'" ng-model="teachTeacher">
                                    </td>
                                </tr>
                                <tr>
                                    <td>班级名称</td>
                                    <td>
                                        <input type="text" ng-init="className='<%=stumsg.className%>'" ng-model="className">
                                    </td>
                                    <td>住宿地址</td>
                                    <td>
                                        <input type="text" ng-init="dormAddress='<%=stumsg.dormAddress%>'" ng-model="dormAddress">
                                    </td>
                                    <td>宿舍号</td>
                                    <td>
                                        <input type="text" ng-init="dormNo=<%=stumsg.dormNo%>" ng-model="dormNo">
                                    </td>
                                </tr>
                                <tr>
                                    <td>缴费状态</td>
                                    <td>
                                        <input type="text" ng-init="pay=<%=stumsg.pay%>" ng-model="pay" placeholder="未缴费/已缴费">
                                    </td>
                                    <td></td>
                                    <td>
                                        <input type="text" ng-disabled="true">
                                    </td>
                                    <td></td>
                                    <td>
                                        <input type="text" ng-disabled="true">
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </form>
                </div>
                <div class="btn">
                    <button class="button" ng-click="alterdata()">保存</button>
                    <button class="button" ng-click="delete()">删除</button>
                </div>
                <%}%>
        </div>
    </div>